﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" mc:Ignorable="d" x:Class="HeaderContent.LoginDialog"
           Width="400" Height="300" 
           Title="LoginDialog">
    
	<Border x:Name="BorderRoot" Margin="2" BorderBrush="Brown"  BorderThickness="5" CornerRadius="20">
		<Grid Margin="24,23,24,12" Background="BurlyWood">
			<Grid.RowDefinitions>
				<RowDefinition  Height="50"/>
				<RowDefinition  Height="50"/>
				<RowDefinition  Height="50"/>
				<RowDefinition  Height="50"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<sdk:Label Grid.Row="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" HorizontalAlignment="Center" Margin="0,0,122,6"  VerticalAlignment="Center" Width="Auto" Content="Enter valid Username and password." />
			<sdk:Label Grid.Row="1" HorizontalAlignment="Center" Margin="0,0,20,6"  VerticalAlignment="Center" Width="115" Content="User Name"/>
            <TextBox x:Name="txtUserName" Grid.Column="1" Text="{Binding UserName,Mode=TwoWay}" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="1" TextWrapping="Wrap"  Width="169"/>
			<sdk:Label Grid.Row="2" HorizontalAlignment="Center" Margin="0,0,20,8"  VerticalAlignment="Center" Width="115" Content="Password"/>
            <TextBox x:Name="txtPassword" Grid.Column="1" Text="{Binding Password,Mode=TwoWay}" HorizontalAlignment="Right" Margin="0,8,8,8" Grid.Row="2" TextWrapping="Wrap" Width="169"/>
			<Button Content="Login" Click="btnLogin_Click"  Grid.Column="1" Margin="-23,8,0,16" Grid.Row="3" HorizontalAlignment="Left" Width="96" Grid.ColumnSpan="2"/>
			<Button Content="Cancel" Click="btnCancel_Click" Grid.Column="1" Margin="77,8,8,16" Grid.Row="3"/>
            


        </Grid>
		
	</Border>
</controls:ChildWindow>